﻿import { mergeMap as _observableMergeMap, catchError as _observableCatch } from 'rxjs/operators';
import { Observable, from as _observableFrom, throwError as _observableThrow, of as _observableOf } from 'rxjs';
import { Injectable } from '@angular/core';
import { Client } from '../../app.client';
import { UserVm } from '../login/user.model';
import { RegisterVm } from 'src/app/pages/register/register.model';

@Injectable({
    providedIn: 'root'
})
export class RegisterClient extends Client {
    register(registerVm: RegisterVm): Observable<UserVm> {
      const url_ = this.getUrl('/user/register');
      const options_: any = this.getOptions(registerVm);
      return this.request<UserVm>('post', url_, options_, UserVm);
    }
}
